package com.jilefojing.beans.pojos.enhanced;

import java.util.Date;
import com.jilefojing.beans.pojos.enhanced.base.BaseEnhanced;
import com.jilefojing.beans.pojos.RHotTag;
import com.jilefojing.beans.enums.forrhottag.ItemTypeEnumForRHotTag;
import com.jilefojing.beans.pojos.enhanced.EnhancedTag;
import com.jilefojing.beans.pojos.enhanced.EnhancedUser;

/**
 * 
 * @author 作者 jgshun
 * @date   创建时间 2016年07月29日 13时54分55秒
 */
public class EnhancedRHotTag extends BaseEnhanced {
	public EnhancedRHotTag(RHotTag rHotTag){
		//TODO 自动生成 细微误差自己调整
			 		if (rHotTag.getId() != null) {
						this.id = rHotTag.getId();
					}
			 	if (rHotTag.getItemType() != null) {
					this.itemType = ItemTypeEnumForRHotTag
							.getItemTypeEnumByCode(rHotTag.getItemType());
				}
				if(rHotTag.getTagId() != null){
					EnhancedTag enhancedTag = new EnhancedTag();
						enhancedTag.setId(rHotTag.getTagId());
					this.enhancedTag = enhancedTag;
				}
			 		if (rHotTag.getSort() != null) {
						this.sort = rHotTag.getSort();
					}
				if(rHotTag.getCreateUser() != null){
					EnhancedUser enhancedUser = new EnhancedUser();
						enhancedUser.setId(rHotTag.getCreateUser());
					this.enhancedUser = enhancedUser;
				}
					this.createTime = rHotTag.getCreateTime();
	}

	public EnhancedRHotTag(){}

			private long id;
		 	private ItemTypeEnumForRHotTag itemType;
			private EnhancedTag enhancedTag;
			private double sort;
			private EnhancedUser enhancedUser;
			private Date createTime;
	
			public long getId() {
				return id;
			}
			public void  setId(long id) {
				this.id = id;
			}
		 	public ItemTypeEnumForRHotTag getItemType() {
				return itemType;
			}
			public void  setItemType(ItemTypeEnumForRHotTag itemType) {
				this.itemType = itemType;
			}
			public EnhancedTag getEnhancedTag() {
				return enhancedTag;
			}
			public void  setEnhancedTag(EnhancedTag enhancedTag) {
				this.enhancedTag = enhancedTag;
			}
			public double getSort() {
				return sort;
			}
			public void  setSort(double sort) {
				this.sort = sort;
			}
			public EnhancedUser getEnhancedUser() {
				return enhancedUser;
			}
			public void  setEnhancedUser(EnhancedUser enhancedUser) {
				this.enhancedUser = enhancedUser;
			}
			public Date getCreateTime() {
				return createTime;
			}
			public void  setCreateTime(Date createTime) {
				this.createTime = createTime;
			}
	
	
	
}